home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / Tip.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  3KB  |  121 lines

  1. /*
  2.  * Copyright (c) 1999 by The XFree86 Project, Inc.
  3.  *
  4.  * Permission is hereby granted, free of charge, to any person obtaining a
  5.  * copy of this software and associated documentation files (the "Software"),
  6.  * to deal in the Software without restriction, including without limitation
  7.  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8.  * and/or sell copies of the Software, and to permit persons to whom the
  9.  * Software is furnished to do so, subject to the following conditions:
  10.  *
  11.  * The above copyright notice and this permission notice shall be included in
  12.  * all copies or substantial portions of the Software.
  13.  *
  14.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15.  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16.  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  17.  * THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  18.  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
  19.  * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  20.  * SOFTWARE.
  21.  *
  22.  * Except as contained in this notice, the name of the XFree86 Project shall
  23.  * not be used in advertising or otherwise to promote the sale, use or other
  24.  * dealings in this Software without prior written authorization from the
  25.  * XFree86 Project.
  26.  *
  27.  * Author: Paulo CΘsar Pereira de Andrade
  28.  */
  29.  
  30. /* $XFree86$ */
  31.  
  32. #ifndef _XawTip_h
  33. #define _XawTip_h
  34.  
  35. /*
  36.  * Tip Widget
  37.  */
  38.  
  39. #include <X11/Xaw/Simple.h>
  40.  
  41. /* Resources:
  42.  
  43.   Name            Class        RepType        Default Value
  44.   ----            -----        -------        -------------
  45.   background        Background        Pixel        XtDefaultBackground
  46.   backgroundPixmap  BackgroundPixmap    Pixmap        XtUnspecifiedPixmap
  47.   border        BorderColor        Pixel        XtDefaultForeground
  48.   borderWidth        BorderWidth        Dimension    1
  49.   bottomMargin        VerticalMargins    Dimension    2
  50.   destroyCallback   Callback        XtCallbackList    NULL
  51.   displayList        DisplayList        XawDisplayList*    NULL
  52.   font            Font        XFontStruct*    XtDefaultFont
  53.   foreground        Foreground        Pixel        XtDefaultForeground
  54.   height        Height        Dimension    text height
  55.   leftMargin        HorizontalMargins    Dimension    6
  56.   rightMargin        HorizontalMargins    Dimension    6
  57.   timeout        Timeout        Int        500
  58.   topMargin        VerticalMargins    Dimension    2
  59.   width            Width        Dimension    text width
  60.   x            Position        Position    0
  61.   y            Position        Position    0
  62.  
  63. */
  64.  
  65. typedef struct _TipClassRec *TipWidgetClass;
  66. typedef struct _TipRec *TipWidget;
  67.  
  68. extern WidgetClass tipWidgetClass;
  69.  
  70. #define XtNbottomMargin        "bottomMargin"
  71. #define XawNdisplayList        "displayList"
  72. #define XtNencoding        "encoding"
  73. #define XtNleftMargin        "leftMargin"
  74. #define XtNrightMargin        "rightMargin"
  75. #define XtNtimeout        "timeout"
  76. #define XtNtopMargin        "topMargin"
  77. #define XtNtip            "tip"
  78.  
  79. #define XawCDisplayList        "DisplayList"
  80. #define XtCHorizontalMargins    "HorizontalMargins"
  81. #define XtCTimeout        "Timeout"
  82. #define XtCVerticalMargins    "VerticalMargins"
  83. #define XtCTip            "Tip"
  84.  
  85. #define XawRDisplayList        "XawDisplayList"
  86.  
  87. /*
  88.  * Public Functions
  89.  */
  90. /*
  91.  * Function:
  92.  *    XawTipEnable
  93.  *
  94.  * Parameters:
  95.  *    w - widget
  96.  *
  97.  * Description:
  98.  *    Enables the tip event handler for this widget.
  99.  */
  100. void XawTipEnable
  101. (
  102.  Widget        w
  103.  );
  104.  
  105. /*
  106.  * Function:
  107.  *    XawTipEnable
  108.  *
  109.  * Parameters:
  110.  *    w - widget
  111.  *
  112.  * Description:
  113.  *    Disables the tip event handler for this widget.
  114.  */
  115. void XawTipDisable
  116. (
  117.  Widget        w
  118.  );
  119.  
  120. #endif /* _XawTip_h */
  121.